package com.jhws.core.db;

public class PageContext {
	private static final ThreadLocal<Page> pages = new ThreadLocal<Page>();
	
	public static Page get(){
		Page p = pages.get();
		if(p == null){
			p = new Page();
			pages.set(p);
		}
		return p;
	}
	
	public static void set(Page p){
		if(p == null){
			p = new Page();
		}
		pages.set(p);
	}
}
